﻿@model PaggerApplication.Models.PageViewModel<PaggerApplication.Models.ProductModel>
@{
    ViewBag.Title = "Numeric GET";
    Layout = "~/Views/Shared/_AjaxLayout.cshtml";
}
<script type="text/javascript" src="@Url.Content("~/Scripts/AjaxNumericPagger.js")"></script>
<h2>
    Numeric Pagger - GET</h2>
<table>
    <thead>
        <tr>
            <th>
                ID
            </th>
            <th>
                Name
            </th>
            <th>
                Specification
            </th>
            <th>
                Price
            </th>
            <th>
                Count
            </th>
        </tr>
    </thead>
    <tbody id="tableBody">
        @Html.Partial("_DataRow", Model)
    </tbody>
</table>
@Ajax.Pagger("NumericGet", Model.RowCount, Model.PageIndex, Model.PageSize, AjaxPaggerType.Numeric, 
new AjaxOptions()
{
    HttpMethod = "GET",
    UpdateTargetId = "tableBody"    
})
